﻿package cn.poco.pepsi.bean;

import java.io.Serializable;

import android.R.string;
import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author jack
 *保存菜式信息
 */
public class Dish implements Parcelable  {

	private String citycode;
	private Long id;
	private String name;

	public Dish(){}
	
	public Dish(String citycode,long id,String name){
		this.citycode=citycode;
		this.id=id;
		this.name=name;
	}
	
	public String getCitycode() {
		return citycode;
	}
	public void setCitycode(String citycode) {
		this.citycode = citycode;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	
	 public static final Parcelable.Creator<Dish> CREATOR = new Creator<Dish>() {
         public Dish createFromParcel(Parcel source) {
             // TODO Auto-generated method stub
             Dish contact = new Dish();
             contact.citycode = source.readString();
             contact.id = source.readLong();
             contact.name=source.readString();
             return contact;
         }

         public Dish[] newArray(int size) {
             return new Dish[size];
         }
     };

	
	@Override
	public int describeContents() {
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(citycode);
		dest.writeLong(id);
		dest.writeString(name);
	}
	
	

	
}
